home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / html / vendors / tower / handoff < prev    next >
Text File  |  1997-06-17  |  804b  |  66 lines

  1. #! /bin/sh
  2.  
  3. #
  4. # Parse the incoming args and make them available...
  5. #
  6. # WHERE is the destination URL
  7. #  FROM is a text string of some sort that ID's the source
  8. #   WHO indicates who gets an e-mail notification
  9. #
  10.  
  11. WHERE="$1"
  12.  FROM="$2"
  13.   WHO="$3"
  14.  
  15. export WHERE FROM WHO
  16.  
  17.  
  18. #
  19. # Clean them off and set defaults...
  20. #
  21.  
  22. if [ "$WHERE" = "" ] ; then
  23.     WHERE="http://www.tower.com/"
  24.      FROM="Some unknown place"
  25.       WHO="ivory@tower.com"
  26. fi
  27.  
  28.  
  29. if [ "$FROM" = "" ] ; then
  30.      FROM="Some unknown place"
  31.       WHO="ivory@tower.com"
  32. fi
  33.  
  34.  
  35. if [ "$WHO" = "" ] ; then
  36.       WHO="ivory@tower.com"
  37. fi
  38.  
  39.  
  40. #
  41. # Send some mail...
  42. #
  43.  
  44. /usr/ucb/mail -s "Handoff: $FROM" $WHO << -EOF1-
  45. A Web handoff seems to have occured!
  46.  
  47. From: $FROM
  48.   To: $WHERE
  49.  
  50. `env`
  51. -EOF1-
  52.  
  53.  
  54. #
  55. # Now do the cross over...
  56. #
  57.  
  58. echo "Location: $WHERE"
  59. echo ""
  60.  
  61.  
  62. exit 0
  63.  
  64.  
  65.      
  66.